home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
clue.lha
/
clue
/
doc
/
clue.tex
/
node229_mn.html
< prev
next >
Wrap
Text File
|
1989-07-12
|
2KB
|
30 lines
<H1><A ID="SECTION006400000000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:gcontexts"><tex2html_anchor_mark></A><BR>
Graphics Contexts
</H1>
<P>
<A ID="3262"><tex2html_anchor_invisible_mark></A>
Clients of the X Window System<A ID="3263"><tex2html_anchor_invisible_mark></A>
specify the visual attributes of graphical output primitives by using
<#3264#><B>graphics contexts</B><#3264#>.<A ID="3265"><tex2html_anchor_invisible_mark></A>
A graphics context is a set of graphical attribute values (e.g.
foreground color, font, line style, ``raster-op'' function, etc.) which
is created and maintained by the X server at the request of a client
program. The client program, which may use several different graphics
contexts at different times, is responsible for specifying which
graphics context is used with each graphical output request. See
[#x-protocol#<tex2html_cite_mark>#1##<tex2html_cite_mark>#] for a complete treatment of the use of graphics
contexts in the X Window System. CLX[#clx#<tex2html_cite_mark>#1##<tex2html_cite_mark>#] represents a graphics context by an
object of type <#3268#><TT>xlib:gcontext</TT><#3268#> and also defines a simple caching
scheme which expedites the modification and inquiry of <#3269#><TT>xlib:gcontext</TT><#3269#> attributes.
CLUE provides support for more efficient sharing of graphics context
objects among several components of the user interface. Contact
programmers are still free to adopt various policies for sharing
graphics contexts, including hierarchical inheritance or no sharing at
all.
<P>
<#5339#>by1<#5339#>
=0 <#5340#>=0 <#5344#>